const initlaState = {}

const user = (state = initlaState, action) => {
  switch (action.type) {
    case 'user/getUserInfo':
      return action.payload
    case 'user/delState':
      return initlaState
    default:
      return state
  }
}

export default user
